<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>LiftSimu: /Users/alrik/Documents/workspace/LiftSimu/src/Settingframe.java Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="up.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">LiftSimu
   
   </div>
   <div id="projectbrief">die Simulation einer Liftanlage</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">/Users/alrik/Documents/workspace/LiftSimu/src/Settingframe.java</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00002"></a>00002 <span class="keyword">import</span> java.awt.*;
<a name="l00003"></a>00003 <span class="keyword">import</span> javax.swing.*;
<a name="l00004"></a>00004 
<a name="l00012"></a>00012 @SuppressWarnings(<span class="stringliteral">&quot;serial&quot;</span>)
<a name="l00013"></a><a class="code" href="class_settingframe.html">00013</a> public class <a class="code" href="class_settingframe.html" title="Das Frame am Prgrammstart.">Settingframe</a> extends JFrame {
<a name="l00014"></a>00014 
<a name="l00015"></a>00015         JButton BStart, BClose;
<a name="l00016"></a>00016         JSpinner SLowest, SHighest;
<a name="l00017"></a>00017         JFormattedTextField TStartTime;
<a name="l00018"></a>00018         
<a name="l00019"></a>00019         <a class="code" href="class_settingframe.html" title="Das Frame am Prgrammstart.">Settingframe</a>(String title){
<a name="l00020"></a>00020                 super(title);
<a name="l00021"></a>00021                 setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<span class="comment">//damit es auf dem Mac auch weggeht</span>
<a name="l00022"></a>00022                 
<a name="l00023"></a>00023                 GridLayout metaLayout = <span class="keyword">new</span> GridLayout(1,1);
<a name="l00024"></a>00024                 <span class="comment">//GridLayout subLayout = new GridLayout(4,4);</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026                 <span class="comment">//JPanel myPanel=new JPanel();</span>
<a name="l00027"></a>00027                 
<a name="l00028"></a>00028                 <span class="comment">//das Panel vorbereiten</span>
<a name="l00029"></a>00029                 setLocation(300, 50);
<a name="l00030"></a>00030                 setSize(480,270);
<a name="l00031"></a>00031                 setResizable(<span class="keyword">false</span>);
<a name="l00032"></a>00032                 setLayout(metaLayout);
<a name="l00033"></a>00033                 <span class="comment">//Alles überhalb des Formulars</span>
<a name="l00034"></a>00034                 add(<span class="keyword">new</span> <a class="code" href="class_splash_panel.html" title="für das Bild beim Programmstart">SplashPanel</a>());
<a name="l00035"></a>00035                 <span class="comment">/*</span>
<a name="l00036"></a>00036 <span class="comment">                //Alles unterhalb des Bildes</span>
<a name="l00037"></a>00037 <span class="comment">                myPanel.setBackground(Color.white);</span>
<a name="l00038"></a>00038 <span class="comment">                add(myPanel);</span>
<a name="l00039"></a>00039 <span class="comment">                myPanel.setLayout(subLayout);</span>
<a name="l00040"></a>00040 <span class="comment">                myPanel.setBorder(BorderFactory.createEmptyBorder(20,20,20,20)); //top, left, bottom, right</span>
<a name="l00041"></a>00041 <span class="comment">                myPanel.add(new JLabel(&quot;     oberste Etage:&quot;));</span>
<a name="l00042"></a>00042 <span class="comment">                SHighest=new JSpinner();</span>
<a name="l00043"></a>00043 <span class="comment">                SHighest.setValue(3);</span>
<a name="l00044"></a>00044 <span class="comment">                myPanel.add(SHighest);</span>
<a name="l00045"></a>00045 <span class="comment">                myPanel.add(new JLabel(&quot;     unterste Etage:&quot;));</span>
<a name="l00046"></a>00046 <span class="comment">                SLowest=new JSpinner();</span>
<a name="l00047"></a>00047 <span class="comment">                SLowest.setValue(-1);</span>
<a name="l00048"></a>00048 <span class="comment">                myPanel.add(SLowest);</span>
<a name="l00049"></a>00049 <span class="comment">                myPanel.add(new JLabel(&quot;     Startzeit:&quot;));</span>
<a name="l00050"></a>00050 <span class="comment">                TStartTime=new JFormattedTextField();</span>
<a name="l00051"></a>00051 <span class="comment">                myPanel.add(TStartTime);</span>
<a name="l00052"></a>00052 <span class="comment">                TStartTime.setText(&quot;10:00:00&quot;);</span>
<a name="l00053"></a>00053 <span class="comment">                BStart=new JButton(&quot;Starten&quot;);</span>
<a name="l00054"></a>00054 <span class="comment">                myPanel.add(BStart);</span>
<a name="l00055"></a>00055 <span class="comment">                BClose=new JButton(&quot;Beenden&quot;);</span>
<a name="l00056"></a>00056 <span class="comment">                myPanel.add(BClose);</span>
<a name="l00057"></a>00057 <span class="comment">                */</span>
<a name="l00058"></a>00058                 setVisible(<span class="keyword">true</span>);
<a name="l00059"></a>00059         }
<a name="l00060"></a>00060         
<a name="l00061"></a>00061 }
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Thu May 31 2012 15:40:12 for LiftSimu by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
